package nowCoder;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @Auther: zzx
 * @Date: 2024.02.24/2/3
 */
public class HJ38 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        BigDecimal bds = new BigDecimal(0);
        BigDecimal bdh = new BigDecimal(x);
        for (int i = 0; i < 5; i++) {
            bds = bds.add(bdh);
            bdh = bdh.divide(BigDecimal.valueOf(2));
            if (i != 4)
                bds = bds.add(bdh);
        }
        System.out.println(bds);
        System.out.println(bdh);
    }
}
